﻿using log4net;
using System;
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
namespace HBase {
    public class FileLogger {
        private static readonly ILog logError = LogManager.GetLogger("logerror");
        private static readonly ILog logInfo = LogManager.GetLogger("loginfo");
        public static void Error(string message ,Exception ex) {
            string msg = message.Trim();
            logError.Error(message ,ex);
        }
        public static void Info(string message) {
            if( String.IsNullOrEmpty(message) ) {
                return;
            }
            //if(logError.IsInfoEnabled) {
            //    logError.Info(message);
            //}
            logInfo.Info(message);
        }
    }
}
